<%@ page language="java" contentType="text/html; UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<!Doctype html>

<html>
    <head>
        <title>注册结果</title>
    </head>

    <body>
            <table>
                <tr>
                    <td>用户名</td>
                    <td>${user.userId}</td>
                </tr>
                <tr>
                    <td>性别</td>
                    <td>
                        ${user.sex}
                    </td>
                </tr>
                <tr>
                    <td>所在地</td>
                    <td>
                        ${user.province}
                    </td>
                </tr>
                <tr>
                    <td>运动爱好</td>
                    <td>
                        <c:forEach items="${user.sports}" var="sport">
                            ${sport},
                        </c:forEach>

                    </td>
                </tr>
                <tr>
                    <td>同意服务协议</td>
                    <td>
                        ${user.agree}
                    </td>
                </tr>
            </table>
    <p>${errMsg}</p>
    </body>
</html>